<script setup>
import {usePreviewImgStore} from "@/stores/previewImgStore.js";

const previewImgStore = usePreviewImgStore();
</script>

<template>
  <el-dialog
      v-model="previewImgStore.show"
      :close-on-press-escape="true"
      :title="previewImgStore.title"
  >
    <el-image draggable="false" fit="contain" style="width: 100%; height: 100%" :src="previewImgStore.img()"/>
  </el-dialog>
</template>

<style scoped>

</style>